package com.basic.java.spring5.bean;

import com.basic.java.spring5.inserProperty.Course;
import org.springframework.beans.factory.FactoryBean;

/**
 * 类
 * 创建时间：2022/3/6 17:32
 *
 * @author gejin
 */
public class MyBean implements FactoryBean<Course> {
    /**
     * 定义返回类型
     *
     * @return
     * @throws Exception
     */
    @Override
    public Course getObject() throws Exception {
        Course course = new Course();
        course.setcName("1233");
        return course;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
